package org.jackysoft.security.config;

public class Resource {
	private String url;
	private String role;

	/**
	 * @param url 用户访问的URL
	 * @param role 该url具备的权限
	 * */
	public Resource(String url, String role) {
		
		this.url = url;
		if(!this.url.startsWith("/")){
			this.url = "/"+this.url;
		}
		this.role = role;
	}

	public String getUrl() {
		return url;
	}

	public String getRole() {
		return role;
	}
}
